// Validate ADD form - albumsizes
var v = new Validator('albumsizes-add-form'); v.EnableMsgsTogether();

v.addValidation('albumsizes[store_location]', 'required', 'Store Location - please enter data');
v.addValidation('albumsizes[store_comments]', 'required', 'Store Comments - please enter data');

/**
* Extra validations - like Agreement
*/
function agreement()
{
	var success = false;
		// checked
		success = true;

	return(success);
}
//v.setAddnlValidationFunction(agreement);

// If jQuery validator is used
// $(document).ready(function(){ $("#albumsizes-add-form").validate(); });